package com.ruoyi.bizsys.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 授信账户对象 credit_account
 *
 * @author african-loan
 * @date 2021-12-30
 */

@Data
public class CreditAccount extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * PK
     */

    @Excel(name = "${comment}", readConverterExp = "PK")
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * 客户号
     */

    @Excel(name = "客户号")
    private String custNo;


    /**
     * 预授信额度
     */

    @Excel(name = "预授信额度")
    private BigDecimal preCreditLine;


    /**
     * 授信额度
     */

    @Excel(name = "授信额度")
    private BigDecimal creditLine;


    /**
     * 渠道额度
     */

    @Excel(name = "渠道额度")
    private BigDecimal channelQuota;


    /**
     * 授信时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "授信时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date creditDate;


    /**
     * 冻结授信额度
     */

    @Excel(name = "冻结授信额度")
    private BigDecimal frozenQuota;


    /**
     * 在贷状态
     */

    @Excel(name = "在贷状态")
    private String onLoan;


    /**
     * 在贷激活日期
     */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "在贷激活日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onLoanActiveDate;


    /**
     * 在贷（已使用）授信额度
     */

    @Excel(name = "在贷", readConverterExp = "已=使用")
    private BigDecimal loanQuota;


    /**
     * 放款本金
     */

    @Excel(name = "放款本金")
    private BigDecimal loanPrincipal;


    /**
     * 已还本金
     */

    @Excel(name = "已还本金")
    private BigDecimal repaidPrincipal;


    /**
     * 服务费
     */

    @Excel(name = "服务费")
    private BigDecimal serviceFee;


    /**
     * 已还服务费
     */

    @Excel(name = "已还服务费")
    private BigDecimal repaidServiceFee;


    /**
     * 总利息
     */

    @Excel(name = "总利息")
    private BigDecimal loanInterest;


    /**
     * 已还总利息
     */

    @Excel(name = "已还总利息")
    private BigDecimal repaidInterest;


    /**
     * 滞纳金
     */

    @Excel(name = "滞纳金")
    private BigDecimal lateFee;


    /**
     * 已还滞纳金
     */

    @Excel(name = "已还滞纳金")
    private BigDecimal repaidLateFee;


    /**
     * 逾期金额
     */

    @Excel(name = "逾期金额")
    private BigDecimal overdueAmount;


    /**
     * 逾期状态
     */

    @Excel(name = "逾期状态")
    private String isOverdue;


    /**
     * 溢缴款金额
     */

    @Excel(name = "溢缴款金额")
    private BigDecimal overflowAmount;


    /**
     * 溢缴款冻结金额
     */

    @Excel(name = "溢缴款冻结金额")
    private BigDecimal frozenOverflowAmount;


    /**
     * 状态
     */

    @Excel(name = "状态")
    private String state;


    /**
     * 备注
     */

    @Excel(name = "备注")
    private String remark;


    /**
     * 创建者
     */

    @Excel(name = "备注")
    private String createBy;


    /**
     * 创建时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "备注", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /**
     * 更新者
     */

    @Excel(name = "备注")
    private String updateBy;


    /**
     * 更新时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "备注", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}